<link rel="stylesheet"  type="text/css"  href="../css/cart.css"/>
<div  ng-controller="cartCtrl">
    <ul class="navigation">
        <li><a href="#/product_list">Let's Go</a></li>
        <li><a id="home" href="#/home">主页</a></li>
        <li><a id="product" href="#/product_list">商品列表</a></li>
        <li class="all_cart"><img  src="../shopping_cart.png"/><a class="cart" href="#/cart" >购物车({{sum_count}})</a></li>
    </ul>
    <div class="form">
        <div class="caption">
            <caption>购物清单</caption>
        </div>
        <table id="product_list">
            <tr>
                <th class="classification">分类</th>
                <th class="name">名称</th>
                <th class="price">单价（元）</th>
                <th class="unit">单位</th>
                <th class="count">数量</th>
                <th class="money">小计</th>
            </tr>
            <tr ng-repeat="item in informations" >
                <td>{{item.classification}}</td>
                <td>{{item.name}}</td>
                <td>{{item.price}}</td>
                <td>{{item.unit}}</td>
                <td class="button" ><button class="less" ng-click="add_click_event(item,-1)">-</button><input  ng-change="add_click_event(item,0)" - style="height: 29px;width: 32px;text-align: center" id="show" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" class="show" ng-model=item.count /><button class="add" ng-click="add_click_event(item,1)">+</button></td>
                <td>{{item.actually}}元  <span ng-show="judgment_subtotal(item)">(原价：{{item.original}}元) </span></td>
            </tr>
        </table>
        <div class="sum">总计：<a id="sum_money" >{{sum_money}} </a> 元</div>
        <button  ng-click="go_cartpage()" class="pay">付款</button>
    </div>
</div>